import { getGameObjectById } from "../engine";
import { Behaviour } from "../engine/Behaviour";
import { dateStorageInUI } from "./dateStorageInUI";

export class ReturnMainScene extends Behaviour{
    onStart(){
        this.gameObject.onClick= () => {
            getGameObjectById("dateStorage").getBehaviour(dateStorageInUI).IsHasLengmian=false;
            //getGameObjectById("dateStorage").getBehaviour(dateStorageInUI).currentday=1;
            this.engine.scenenumber=1
        }
    }
}